package com.gzc.house.user.api.controller;

import com.gzc.house.user.api.common.RestResponse;
import com.gzc.house.user.api.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

	@Autowired
	UserService userService;

	@RequestMapping("getUser")
	public RestResponse<String> getUser() {
		String user = userService.getUser();

		RestResponse<String> res = new RestResponse<>();
		res.setResult(user);
		return res;

	}
}
